package com.oracle.pojo;

import java.util.ArrayList;
import java.util.List;

public class XsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public XsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andXsIdIsNull() {
            addCriterion("xs_id is null");
            return (Criteria) this;
        }

        public Criteria andXsIdIsNotNull() {
            addCriterion("xs_id is not null");
            return (Criteria) this;
        }

        public Criteria andXsIdEqualTo(Integer value) {
            addCriterion("xs_id =", value, "xsId");
            return (Criteria) this;
        }

        public Criteria andXsIdNotEqualTo(Integer value) {
            addCriterion("xs_id <>", value, "xsId");
            return (Criteria) this;
        }

        public Criteria andXsIdGreaterThan(Integer value) {
            addCriterion("xs_id >", value, "xsId");
            return (Criteria) this;
        }

        public Criteria andXsIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("xs_id >=", value, "xsId");
            return (Criteria) this;
        }

        public Criteria andXsIdLessThan(Integer value) {
            addCriterion("xs_id <", value, "xsId");
            return (Criteria) this;
        }

        public Criteria andXsIdLessThanOrEqualTo(Integer value) {
            addCriterion("xs_id <=", value, "xsId");
            return (Criteria) this;
        }

        public Criteria andXsIdIn(List<Integer> values) {
            addCriterion("xs_id in", values, "xsId");
            return (Criteria) this;
        }

        public Criteria andXsIdNotIn(List<Integer> values) {
            addCriterion("xs_id not in", values, "xsId");
            return (Criteria) this;
        }

        public Criteria andXsIdBetween(Integer value1, Integer value2) {
            addCriterion("xs_id between", value1, value2, "xsId");
            return (Criteria) this;
        }

        public Criteria andXsIdNotBetween(Integer value1, Integer value2) {
            addCriterion("xs_id not between", value1, value2, "xsId");
            return (Criteria) this;
        }

        public Criteria andXsStudentidIsNull() {
            addCriterion("xs_studentid is null");
            return (Criteria) this;
        }

        public Criteria andXsStudentidIsNotNull() {
            addCriterion("xs_studentid is not null");
            return (Criteria) this;
        }

        public Criteria andXsStudentidEqualTo(Integer value) {
            addCriterion("xs_studentid =", value, "xsStudentid");
            return (Criteria) this;
        }

        public Criteria andXsStudentidNotEqualTo(Integer value) {
            addCriterion("xs_studentid <>", value, "xsStudentid");
            return (Criteria) this;
        }

        public Criteria andXsStudentidGreaterThan(Integer value) {
            addCriterion("xs_studentid >", value, "xsStudentid");
            return (Criteria) this;
        }

        public Criteria andXsStudentidGreaterThanOrEqualTo(Integer value) {
            addCriterion("xs_studentid >=", value, "xsStudentid");
            return (Criteria) this;
        }

        public Criteria andXsStudentidLessThan(Integer value) {
            addCriterion("xs_studentid <", value, "xsStudentid");
            return (Criteria) this;
        }

        public Criteria andXsStudentidLessThanOrEqualTo(Integer value) {
            addCriterion("xs_studentid <=", value, "xsStudentid");
            return (Criteria) this;
        }

        public Criteria andXsStudentidIn(List<Integer> values) {
            addCriterion("xs_studentid in", values, "xsStudentid");
            return (Criteria) this;
        }

        public Criteria andXsStudentidNotIn(List<Integer> values) {
            addCriterion("xs_studentid not in", values, "xsStudentid");
            return (Criteria) this;
        }

        public Criteria andXsStudentidBetween(Integer value1, Integer value2) {
            addCriterion("xs_studentid between", value1, value2, "xsStudentid");
            return (Criteria) this;
        }

        public Criteria andXsStudentidNotBetween(Integer value1, Integer value2) {
            addCriterion("xs_studentid not between", value1, value2, "xsStudentid");
            return (Criteria) this;
        }

        public Criteria andXsNameIsNull() {
            addCriterion("xs_name is null");
            return (Criteria) this;
        }

        public Criteria andXsNameIsNotNull() {
            addCriterion("xs_name is not null");
            return (Criteria) this;
        }

        public Criteria andXsNameEqualTo(String value) {
            addCriterion("xs_name =", value, "xsName");
            return (Criteria) this;
        }

        public Criteria andXsNameNotEqualTo(String value) {
            addCriterion("xs_name <>", value, "xsName");
            return (Criteria) this;
        }

        public Criteria andXsNameGreaterThan(String value) {
            addCriterion("xs_name >", value, "xsName");
            return (Criteria) this;
        }

        public Criteria andXsNameGreaterThanOrEqualTo(String value) {
            addCriterion("xs_name >=", value, "xsName");
            return (Criteria) this;
        }

        public Criteria andXsNameLessThan(String value) {
            addCriterion("xs_name <", value, "xsName");
            return (Criteria) this;
        }

        public Criteria andXsNameLessThanOrEqualTo(String value) {
            addCriterion("xs_name <=", value, "xsName");
            return (Criteria) this;
        }

        public Criteria andXsNameLike(String value) {
            addCriterion("xs_name like", value, "xsName");
            return (Criteria) this;
        }

        public Criteria andXsNameNotLike(String value) {
            addCriterion("xs_name not like", value, "xsName");
            return (Criteria) this;
        }

        public Criteria andXsNameIn(List<String> values) {
            addCriterion("xs_name in", values, "xsName");
            return (Criteria) this;
        }

        public Criteria andXsNameNotIn(List<String> values) {
            addCriterion("xs_name not in", values, "xsName");
            return (Criteria) this;
        }

        public Criteria andXsNameBetween(String value1, String value2) {
            addCriterion("xs_name between", value1, value2, "xsName");
            return (Criteria) this;
        }

        public Criteria andXsNameNotBetween(String value1, String value2) {
            addCriterion("xs_name not between", value1, value2, "xsName");
            return (Criteria) this;
        }

        public Criteria andXsSexIsNull() {
            addCriterion("xs_sex is null");
            return (Criteria) this;
        }

        public Criteria andXsSexIsNotNull() {
            addCriterion("xs_sex is not null");
            return (Criteria) this;
        }

        public Criteria andXsSexEqualTo(String value) {
            addCriterion("xs_sex =", value, "xsSex");
            return (Criteria) this;
        }

        public Criteria andXsSexNotEqualTo(String value) {
            addCriterion("xs_sex <>", value, "xsSex");
            return (Criteria) this;
        }

        public Criteria andXsSexGreaterThan(String value) {
            addCriterion("xs_sex >", value, "xsSex");
            return (Criteria) this;
        }

        public Criteria andXsSexGreaterThanOrEqualTo(String value) {
            addCriterion("xs_sex >=", value, "xsSex");
            return (Criteria) this;
        }

        public Criteria andXsSexLessThan(String value) {
            addCriterion("xs_sex <", value, "xsSex");
            return (Criteria) this;
        }

        public Criteria andXsSexLessThanOrEqualTo(String value) {
            addCriterion("xs_sex <=", value, "xsSex");
            return (Criteria) this;
        }

        public Criteria andXsSexLike(String value) {
            addCriterion("xs_sex like", value, "xsSex");
            return (Criteria) this;
        }

        public Criteria andXsSexNotLike(String value) {
            addCriterion("xs_sex not like", value, "xsSex");
            return (Criteria) this;
        }

        public Criteria andXsSexIn(List<String> values) {
            addCriterion("xs_sex in", values, "xsSex");
            return (Criteria) this;
        }

        public Criteria andXsSexNotIn(List<String> values) {
            addCriterion("xs_sex not in", values, "xsSex");
            return (Criteria) this;
        }

        public Criteria andXsSexBetween(String value1, String value2) {
            addCriterion("xs_sex between", value1, value2, "xsSex");
            return (Criteria) this;
        }

        public Criteria andXsSexNotBetween(String value1, String value2) {
            addCriterion("xs_sex not between", value1, value2, "xsSex");
            return (Criteria) this;
        }

        public Criteria andXsAgeIsNull() {
            addCriterion("xs_age is null");
            return (Criteria) this;
        }

        public Criteria andXsAgeIsNotNull() {
            addCriterion("xs_age is not null");
            return (Criteria) this;
        }

        public Criteria andXsAgeEqualTo(Integer value) {
            addCriterion("xs_age =", value, "xsAge");
            return (Criteria) this;
        }

        public Criteria andXsAgeNotEqualTo(Integer value) {
            addCriterion("xs_age <>", value, "xsAge");
            return (Criteria) this;
        }

        public Criteria andXsAgeGreaterThan(Integer value) {
            addCriterion("xs_age >", value, "xsAge");
            return (Criteria) this;
        }

        public Criteria andXsAgeGreaterThanOrEqualTo(Integer value) {
            addCriterion("xs_age >=", value, "xsAge");
            return (Criteria) this;
        }

        public Criteria andXsAgeLessThan(Integer value) {
            addCriterion("xs_age <", value, "xsAge");
            return (Criteria) this;
        }

        public Criteria andXsAgeLessThanOrEqualTo(Integer value) {
            addCriterion("xs_age <=", value, "xsAge");
            return (Criteria) this;
        }

        public Criteria andXsAgeIn(List<Integer> values) {
            addCriterion("xs_age in", values, "xsAge");
            return (Criteria) this;
        }

        public Criteria andXsAgeNotIn(List<Integer> values) {
            addCriterion("xs_age not in", values, "xsAge");
            return (Criteria) this;
        }

        public Criteria andXsAgeBetween(Integer value1, Integer value2) {
            addCriterion("xs_age between", value1, value2, "xsAge");
            return (Criteria) this;
        }

        public Criteria andXsAgeNotBetween(Integer value1, Integer value2) {
            addCriterion("xs_age not between", value1, value2, "xsAge");
            return (Criteria) this;
        }

        public Criteria andXsPhoneIsNull() {
            addCriterion("xs_phone is null");
            return (Criteria) this;
        }

        public Criteria andXsPhoneIsNotNull() {
            addCriterion("xs_phone is not null");
            return (Criteria) this;
        }

        public Criteria andXsPhoneEqualTo(String value) {
            addCriterion("xs_phone =", value, "xsPhone");
            return (Criteria) this;
        }

        public Criteria andXsPhoneNotEqualTo(String value) {
            addCriterion("xs_phone <>", value, "xsPhone");
            return (Criteria) this;
        }

        public Criteria andXsPhoneGreaterThan(String value) {
            addCriterion("xs_phone >", value, "xsPhone");
            return (Criteria) this;
        }

        public Criteria andXsPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("xs_phone >=", value, "xsPhone");
            return (Criteria) this;
        }

        public Criteria andXsPhoneLessThan(String value) {
            addCriterion("xs_phone <", value, "xsPhone");
            return (Criteria) this;
        }

        public Criteria andXsPhoneLessThanOrEqualTo(String value) {
            addCriterion("xs_phone <=", value, "xsPhone");
            return (Criteria) this;
        }

        public Criteria andXsPhoneLike(String value) {
            addCriterion("xs_phone like", value, "xsPhone");
            return (Criteria) this;
        }

        public Criteria andXsPhoneNotLike(String value) {
            addCriterion("xs_phone not like", value, "xsPhone");
            return (Criteria) this;
        }

        public Criteria andXsPhoneIn(List<String> values) {
            addCriterion("xs_phone in", values, "xsPhone");
            return (Criteria) this;
        }

        public Criteria andXsPhoneNotIn(List<String> values) {
            addCriterion("xs_phone not in", values, "xsPhone");
            return (Criteria) this;
        }

        public Criteria andXsPhoneBetween(String value1, String value2) {
            addCriterion("xs_phone between", value1, value2, "xsPhone");
            return (Criteria) this;
        }

        public Criteria andXsPhoneNotBetween(String value1, String value2) {
            addCriterion("xs_phone not between", value1, value2, "xsPhone");
            return (Criteria) this;
        }

        public Criteria andXsZyidIsNull() {
            addCriterion("xs_zyid is null");
            return (Criteria) this;
        }

        public Criteria andXsZyidIsNotNull() {
            addCriterion("xs_zyid is not null");
            return (Criteria) this;
        }

        public Criteria andXsZyidEqualTo(Integer value) {
            addCriterion("xs_zyid =", value, "xsZyid");
            return (Criteria) this;
        }

        public Criteria andXsZyidNotEqualTo(Integer value) {
            addCriterion("xs_zyid <>", value, "xsZyid");
            return (Criteria) this;
        }

        public Criteria andXsZyidGreaterThan(Integer value) {
            addCriterion("xs_zyid >", value, "xsZyid");
            return (Criteria) this;
        }

        public Criteria andXsZyidGreaterThanOrEqualTo(Integer value) {
            addCriterion("xs_zyid >=", value, "xsZyid");
            return (Criteria) this;
        }

        public Criteria andXsZyidLessThan(Integer value) {
            addCriterion("xs_zyid <", value, "xsZyid");
            return (Criteria) this;
        }

        public Criteria andXsZyidLessThanOrEqualTo(Integer value) {
            addCriterion("xs_zyid <=", value, "xsZyid");
            return (Criteria) this;
        }

        public Criteria andXsZyidIn(List<Integer> values) {
            addCriterion("xs_zyid in", values, "xsZyid");
            return (Criteria) this;
        }

        public Criteria andXsZyidNotIn(List<Integer> values) {
            addCriterion("xs_zyid not in", values, "xsZyid");
            return (Criteria) this;
        }

        public Criteria andXsZyidBetween(Integer value1, Integer value2) {
            addCriterion("xs_zyid between", value1, value2, "xsZyid");
            return (Criteria) this;
        }

        public Criteria andXsZyidNotBetween(Integer value1, Integer value2) {
            addCriterion("xs_zyid not between", value1, value2, "xsZyid");
            return (Criteria) this;
        }

        public Criteria andXsZynameIsNull() {
            addCriterion("xs_zyname is null");
            return (Criteria) this;
        }

        public Criteria andXsZynameIsNotNull() {
            addCriterion("xs_zyname is not null");
            return (Criteria) this;
        }

        public Criteria andXsZynameEqualTo(String value) {
            addCriterion("xs_zyname =", value, "xsZyname");
            return (Criteria) this;
        }

        public Criteria andXsZynameNotEqualTo(String value) {
            addCriterion("xs_zyname <>", value, "xsZyname");
            return (Criteria) this;
        }

        public Criteria andXsZynameGreaterThan(String value) {
            addCriterion("xs_zyname >", value, "xsZyname");
            return (Criteria) this;
        }

        public Criteria andXsZynameGreaterThanOrEqualTo(String value) {
            addCriterion("xs_zyname >=", value, "xsZyname");
            return (Criteria) this;
        }

        public Criteria andXsZynameLessThan(String value) {
            addCriterion("xs_zyname <", value, "xsZyname");
            return (Criteria) this;
        }

        public Criteria andXsZynameLessThanOrEqualTo(String value) {
            addCriterion("xs_zyname <=", value, "xsZyname");
            return (Criteria) this;
        }

        public Criteria andXsZynameLike(String value) {
            addCriterion("xs_zyname like", value, "xsZyname");
            return (Criteria) this;
        }

        public Criteria andXsZynameNotLike(String value) {
            addCriterion("xs_zyname not like", value, "xsZyname");
            return (Criteria) this;
        }

        public Criteria andXsZynameIn(List<String> values) {
            addCriterion("xs_zyname in", values, "xsZyname");
            return (Criteria) this;
        }

        public Criteria andXsZynameNotIn(List<String> values) {
            addCriterion("xs_zyname not in", values, "xsZyname");
            return (Criteria) this;
        }

        public Criteria andXsZynameBetween(String value1, String value2) {
            addCriterion("xs_zyname between", value1, value2, "xsZyname");
            return (Criteria) this;
        }

        public Criteria andXsZynameNotBetween(String value1, String value2) {
            addCriterion("xs_zyname not between", value1, value2, "xsZyname");
            return (Criteria) this;
        }

        public Criteria andXsDormitoryidIsNull() {
            addCriterion("xs_dormitoryid is null");
            return (Criteria) this;
        }

        public Criteria andXsDormitoryidIsNotNull() {
            addCriterion("xs_dormitoryid is not null");
            return (Criteria) this;
        }

        public Criteria andXsDormitoryidEqualTo(Integer value) {
            addCriterion("xs_dormitoryid =", value, "xsDormitoryid");
            return (Criteria) this;
        }

        public Criteria andXsDormitoryidNotEqualTo(Integer value) {
            addCriterion("xs_dormitoryid <>", value, "xsDormitoryid");
            return (Criteria) this;
        }

        public Criteria andXsDormitoryidGreaterThan(Integer value) {
            addCriterion("xs_dormitoryid >", value, "xsDormitoryid");
            return (Criteria) this;
        }

        public Criteria andXsDormitoryidGreaterThanOrEqualTo(Integer value) {
            addCriterion("xs_dormitoryid >=", value, "xsDormitoryid");
            return (Criteria) this;
        }

        public Criteria andXsDormitoryidLessThan(Integer value) {
            addCriterion("xs_dormitoryid <", value, "xsDormitoryid");
            return (Criteria) this;
        }

        public Criteria andXsDormitoryidLessThanOrEqualTo(Integer value) {
            addCriterion("xs_dormitoryid <=", value, "xsDormitoryid");
            return (Criteria) this;
        }

        public Criteria andXsDormitoryidIn(List<Integer> values) {
            addCriterion("xs_dormitoryid in", values, "xsDormitoryid");
            return (Criteria) this;
        }

        public Criteria andXsDormitoryidNotIn(List<Integer> values) {
            addCriterion("xs_dormitoryid not in", values, "xsDormitoryid");
            return (Criteria) this;
        }

        public Criteria andXsDormitoryidBetween(Integer value1, Integer value2) {
            addCriterion("xs_dormitoryid between", value1, value2, "xsDormitoryid");
            return (Criteria) this;
        }

        public Criteria andXsDormitoryidNotBetween(Integer value1, Integer value2) {
            addCriterion("xs_dormitoryid not between", value1, value2, "xsDormitoryid");
            return (Criteria) this;
        }

        public Criteria andXsBedIsNull() {
            addCriterion("xs_bed is null");
            return (Criteria) this;
        }

        public Criteria andXsBedIsNotNull() {
            addCriterion("xs_bed is not null");
            return (Criteria) this;
        }

        public Criteria andXsBedEqualTo(String value) {
            addCriterion("xs_bed =", value, "xsBed");
            return (Criteria) this;
        }

        public Criteria andXsBedNotEqualTo(String value) {
            addCriterion("xs_bed <>", value, "xsBed");
            return (Criteria) this;
        }

        public Criteria andXsBedGreaterThan(String value) {
            addCriterion("xs_bed >", value, "xsBed");
            return (Criteria) this;
        }

        public Criteria andXsBedGreaterThanOrEqualTo(String value) {
            addCriterion("xs_bed >=", value, "xsBed");
            return (Criteria) this;
        }

        public Criteria andXsBedLessThan(String value) {
            addCriterion("xs_bed <", value, "xsBed");
            return (Criteria) this;
        }

        public Criteria andXsBedLessThanOrEqualTo(String value) {
            addCriterion("xs_bed <=", value, "xsBed");
            return (Criteria) this;
        }

        public Criteria andXsBedLike(String value) {
            addCriterion("xs_bed like", value, "xsBed");
            return (Criteria) this;
        }

        public Criteria andXsBedNotLike(String value) {
            addCriterion("xs_bed not like", value, "xsBed");
            return (Criteria) this;
        }

        public Criteria andXsBedIn(List<String> values) {
            addCriterion("xs_bed in", values, "xsBed");
            return (Criteria) this;
        }

        public Criteria andXsBedNotIn(List<String> values) {
            addCriterion("xs_bed not in", values, "xsBed");
            return (Criteria) this;
        }

        public Criteria andXsBedBetween(String value1, String value2) {
            addCriterion("xs_bed between", value1, value2, "xsBed");
            return (Criteria) this;
        }

        public Criteria andXsBedNotBetween(String value1, String value2) {
            addCriterion("xs_bed not between", value1, value2, "xsBed");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}